<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->
<form name="form1" id="form1" method="post" action="?">
<input type="hidden" name="mode" value="edit" />
<input type="hidden" name="kiyaku_id" value="<!--{$tpl_kiyaku_id}-->" />
<div id="basis" class="contents-main">
  <table class="form">
    <tr>
      <th>規約タイトル<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.kiyaku_title}--></span>
        <input type="text" name="kiyaku_title" value="<!--{$arrForm.kiyaku_title|escape}-->" maxlength="<!--{$smarty.const.SMTEXT_LEN}-->" style="" size="60" class="box60"/>
        <span class="attention"> （上限<!--{$smarty.const.SMTEXT_LEN}-->文字）</span>
      </td>
    </tr>
    <tr>
      <th>規約内容<span class="attention"> *</span></th>
      <td>
      <span class="attention"><!--{$arrErr.kiyaku_text}--></span>
      <textarea name="kiyaku_text" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" cols="60" rows="8" class="area60" style="" ><!--{$arrForm.kiyaku_text|escape}--></textarea>
      <span class="attention"> （上限<!--{$smarty.const.MLTEXT_LEN}-->文字）</span>
      </td>
    </tr>
  </table>
  <div class="btn"><button type="submit"><span>この内容で登録する</span></button></div>

  <table class="list">
    <tr>
      <th>規約タイトル</th>
      <th>編集</th>
      <th>削除</th>
      <th>移動</th>
    </tr>
    <!--{section name=cnt loop=$arrKiyaku}-->
    <tr style="background:<!--{if $tpl_class_id != $arrKiyaku[cnt].kiyaku_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;">
    <!--{assign var=kiyaku_id value=$arrKiyaku[cnt].kiyaku_id}-->
      <td><!--{* 規格名 *}--><!--{$arrKiyaku[cnt].kiyaku_title|escape}--></td>
      <td align="center">
        <!--{if $tpl_kiyaku_id != $arrKiyaku[cnt].kiyaku_id}-->
        <a href="?" onclick="fnModeSubmit('pre_edit', 'kiyaku_id', <!--{$arrKiyaku[cnt].kiyaku_id}-->); return false;">編集</a>
        <!--{else}-->
        編集中
        <!--{/if}-->
      </td>
      <td align="center">
        <!--{if $arrClassCatCount[$class_id] > 0}-->
        -
        <!--{else}-->
        <a href="?" onclick="fnModeSubmit('delete', 'kiyaku_id', <!--{$arrKiyaku[cnt].kiyaku_id}-->); return false;">削除</a>
        <!--{/if}-->
      </td>
      <td align="center">
        <!--{if $smarty.section.cnt.iteration != 1}-->
        <a href="?" onclick="fnModeSubmit('up', 'kiyaku_id', <!--{$arrKiyaku[cnt].kiyaku_id}-->); return false;">上へ</a>
        <!--{/if}-->
        <!--{if $smarty.section.cnt.iteration != $smarty.section.cnt.last}-->
        <a href="?" onclick="fnModeSubmit('down', 'kiyaku_id', <!--{$arrKiyaku[cnt].kiyaku_id}-->); return false;">下へ</a>
        <!--{/if}-->
      </td>
    </tr>
<!--{/section}-->
  </table>

</div>
</form>    
